// pages/address/address.js
Page({
  onLoad(option){
    var address = this.data.address;
    address.push({
      name:option.username,
      mobile:option.mobile,
      remark:option.region+option.remark,
      isDefault:false
    })
    this.setData({
      address
    })
    console.log(option)
  },
  /**
   * 组件的初始数据
   */
  data: {
    address: [{
        name: '满祥',
        mobile: 1230151231,
        remark: '陕西西安凤城一路',
        isDefault: true
      },
      {
        name: '张杰',
        mobile: 1101192120,
        remark: '陕西西安凤城3路',
        isDefault: false
      }
    ]
  },
  newly() {
    wx.navigateTo({
      url: '/pages/newly/newly',
    })
  }
})